/*
 * Copyright (C) 2016 Facishare Technology Co., Ltd. All Rights Reserved.
 */
package com.wlh.animation.ipctest;

import java.util.List;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.annotation.Nullable;
import android.util.Log;

/**
 * @author weilh
 *         <b>DATE</b> 2016/8/25.
 */
public class BinderPoolService extends Service{
    BinderPool.IBinderPoolImpl mBinder = new BinderPool.IBinderPoolImpl();

    public static class BookManagerImpl extends IBookManager.Stub{

        @Override
        public List<Book> getBookList() throws RemoteException {
            Log.i("wlh", "getBookList");
            return null;
        }

        @Override
        public void addBook(Book book) throws RemoteException {

        }

        @Override
        public void registerListener(IBookListener listener) throws RemoteException {

        }

        @Override
        public void unRegisterListener(IBookListener listener) throws RemoteException {

        }
    }

    public static class TopicManagerImpl extends ITopicManager.Stub {

        @Override
        public void updateTopic() throws RemoteException {
            Log.i("wlh", "updateTopic");
        }
    }
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return mBinder                              ;
    }
}
